package controllers.features;

import models.features.Statistics;
import views.features.StatisticsView;

public class StatisticsController {

	private Statistics model;
	private StatisticsView view;
	private static StatisticsController instance;

	public static StatisticsController newInstance(Statistics model,
			StatisticsView view) {
		if (instance == null)
			instance = new StatisticsController(model, view);
		else
			view.initializeValues(model.getStatisticValues());
		return instance;
	}

	private StatisticsController(Statistics model, StatisticsView view) {
		this.model = model;
		this.view = view;
		view.initializeValues(model.getStatisticValues());
	}

}
